package Work4;

public class Thread_print_letter extends Thread{
	public void run() {
		synchronized (PrintDemo.lock) {
			for(int i=65;i<91;i++){
				try {
					PrintDemo.lock.wait();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				System.out.print((char)i);
				PrintDemo.lock.notify(); 
			}
		}
	}
}
